Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] migrate to new GET metadata list API #119123

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

joeypoon
Copy link
Member

@joeypoon joeypoon commented Nov 18, 2021

Summary

Migrate frontend to use new GET metadata list API introduced in #118968. No functional differences.
Also addressing some comments on the GET API from #118968.

Behavior is unchanged:
get-endpoints-list

Checklist

For maintainers

@joeypoon joeypoon added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 labels Nov 18, 2021
@joeypoon joeypoon requested a review from a team November 18, 2021 23:35
@joeypoon joeypoon force-pushed the feature/migrate-get-endpoints-list branch 2 times, most recently from 223af0a to ed4b32b Compare November 20, 2021 00:16
@joeypoon joeypoon force-pushed the feature/migrate-get-endpoints-list branch from ed4b32b to 1aaf9ca Compare November 22, 2021 18:11
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Test Failures

  • [job] [logs] Default CI Group #6 / security APIs - Audit Log Audit Log logs audit events when reading and writing saved objects

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 4.5MB 4.5MB +14.0B

History

  • 💔 Build #8205 failed ed4b32bc63c2c68ea5b56f0b81d33dfd4e158fc5
  • 💔 Build #7858 failed 4cf3f93246d0d7e1a328508f98799bd1c0c06823

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@joeypoon joeypoon marked this pull request as ready for review November 22, 2021 19:50
@joeypoon joeypoon requested a review from a team as a code owner November 22, 2021 19:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

@joeypoon joeypoon added release_note:enhancement and removed release_note:skip Skip the PR/issue when compiling release notes labels Nov 22, 2021
dispatch({
type: 'serverReturnedEndpointList',
payload: response,
});

dispatchIngestPolicies({ http: coreStart.http, hosts: response.hosts, store });
dispatchIngestPolicies({ http: coreStart.http, hosts: response.data, store });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was initially trying to migrate this to react query and hooks but there are some other dependencies on the data here in the middleware so probably best to scope that into its own ticket.

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments. let me know your thoughts on them or reach out if you have any questions.

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@joeypoon joeypoon merged commit edf66a5 into elastic:main Nov 23, 2021
@joeypoon joeypoon deleted the feature/migrate-get-endpoints-list branch November 23, 2021 16:39
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 23, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants